package com.itheima.utils;

import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserUtils {
    @Autowired
    private UserService userService;

    public String getRealName(int userId) {
        return userService.selectRealNameById(userId);
    }

    public String getUserAvatar(int userId) {
        return userService.getUserAvatar(userId);
    }
}
